#!/usr/bin/python3

def line_conf():
    b = 15
    def line(x):
        nonlocal b
        b += 1
        return 2*x+b
    return line       # return a function object

b = 5
my_line = line_conf()
#print(my_line.__closure__)   
#print(my_line.__closure__[0].cell_contents)   
print(my_line(5))
print(my_line(6))
print(my_line(7))
